<?php

class IndexController extends Zend_Controller_Action
{

    public function init()
    {
        $zend_auth = Zend_Auth::getInstance();
        if (!$zend_auth->hasIdentity()) {
            $this->_redirect('login');
        } else {
            $this->initView();
        $this->view->baseUrl = $this->_request->getBaseUrl();
        }
        

    }

    public function indexAction()
    {
        // action body
    }

    public function pruebaAction()
    {
        // action body
    }


}



